"""
    list列表的循环遍历
"""
def list_while_func():
    my_list = ["传智教育","黑马程序员","Python"]
    index = 0
    while index < len(my_list):
        print(my_list[index])
        index += 1
list_while_func()
print("===================")
def list_for_func():
    my_list = ["传智教育","黑马程序员","Python"]
    # for index in range(len(my_list)):
    #     print(my_list[index])
    for x in my_list:
        print(x)
list_for_func()